package com.fujimana.android.manacode.converter.token;

import com.fujimana.android.manacode.converter.Decorator;
import com.fujimana.android.manacode.converter.Options;
import com.fujimana.android.manacode.converter.Token;

public class CommentToken extends Token {
	
	public static final String TYPE = CommentToken.class.getName();
	
	public static final Decorator DECORATE = new CommentDecorator();
	
	public CommentToken(String value,Options options) {
		super(value, options);
	}

	@Override
	public String getFormatedValue() {
		return getValue();
	}

	static class CommentDecorator implements Decorator {

		@Override
		public String decorate() {
			return "color: #006400;";
		}

		@Override
		public boolean isDecorate(String value) {
			return true;
		}
		
	}
}
